<?php
session_start();
if(isset($_POST["cboIdioma"]) && strlen($_POST["cboIdioma"]) > 0)
{
   $_SESSION["sIDIOMA"] = $_POST["cboIdioma"];
}
else
{
  if(!isset($_SESSION["sIDIOMA"]))
  {
    $_SESSION["sIDIOMA"] = 2; 
  } 
}
include("phpConf/controlador.php");
include("plantillas/_menuHelper.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//ES" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
    <head>  
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <!--<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>-->
        <meta name="description" content="Aqui toda nuestra descripcion">
        <meta name="keywords" content="Aqui, Palabras, Clave">
        <link rel="stylesheet" type="text/css" href="css/style.css"/>
        <title>IBS</title>
        <!--<link href="http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700" rel="stylesheet" />-->
        <script src="js/jquery-1.8.2.min.js"></script>
        <script src="js/slides.min.jquery.js"></script>    
        <script src="js/main.js"></script>
        <script src="js/modernizr.js"></script>
        <script type="text/javascript" src="js/jquery.aw-showcase.js"></script>
        <script type="text/javascript" src="js/jquery.placeholder.min.js"></script>
        <!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="css/ie8.css"/>
<![endif]-->
        <!-- Inicio script Armando -->
        <script src="js/validacion.js"></script>
        <script src="js/contacto.js"></script>
            
        <link rel="stylesheet" href="css/cart.css" type="text/css" media="all" />
        <link rel="stylesheet" type="text/css" href="css/jquery.fancybox.css" />
        <script type="text/javascript" src="js/jquery.fancybox.pack.js"></script>
        <script src="js/jquery.cookie.js" type="text/javascript"></script>
        <script src="js/jquery.validate.min.js" type="text/javascript"></script>
        <script src="js/cart.js" type="text/javascript"></script>      
        
        <script src="js/jquery.motionCaptcha.0.2.js" type="text/javascript"></script>
        <link rel="stylesheet" type="text/css" href="css/jquery.motionCaptcha.0.2.css"/>
        <link rel="stylesheet" type="text/css" href="css/motionCaptcha.demo.css"/>
        <link rel="stylesheet" type="text/css" href="css/main.css"/>
                   
        <script>
            //var sDatosGuardados="Chingon Datos Guardados";
            var sDatosNoGuardados="Datos No Guardados";
            var sIngresarCamposAceptar ="<?php echo $FrmContactoSolicitudJS ?>";   
            var sErrorEmail = "<?php echo $FrmContactoCorreoMal ?>";
            var sEmailDife = "<?php echo $FrmContactoCorreoDife ?>"; 
        </script>
        <!-- Fin script Armando -->
        
    </head>
    <body>
        <header>
            <div class="subheader">
                <div class="logotipo"> <a href ="index.php" class="logo-ibs"></a></div>
                <nav>
                    <ul>
                        <li><a href="shop.php" id="<?php echo $shop;?>"><?php echo $MenuHeaderCompras ?></a></li>
                        <li><a href="soluciones.php"  id="<?php echo $soluciones; ?>"><?php echo $MenuHeaderSoluciones ?></a></li>
                        <li><a href="seguridadycontrol.php" id="<?php echo $seguridad; ?>" ><?php echo $MenuHeaderTecnologia ?></a></li>
                        <li><a href="#" ><?php echo $MenuHeaderLink ?></a></li>
                        <li><a href="nosotros.php" id="<?php echo $nosotros;?>"><?php echo $MenuHeaderSobre ?></a></li>
                        <li><a href=""><?php echo $MenuHeaderMiIbs ?></a></li>  
                    </ul>
                </nav>
                <div class="top-search">
                    <form id="frmLang" name="frmLang"  method="post" action="<?php echo $rutaActual; ?>"> <input type="text" id="txtBuscar" name="txtBuscar" placeholder="<?php echo $FooterTxtFind ?>">
                        <input type="button" name="buscar" id="search_button" class="icon-buscar">
                    
                        <ul class="nav">
                        <li class="options">
                            <div id="idioma"><span id="iSel">IDIOMA</span> - <label> <span id="tSel">MX</span></label></div>
                            <ul class="subnav">
                                <li id="0"></li>
                             <?php 
                             foreach($Paises as $filaPaises): 
                             ?>
                                <li id ="<?php echo $filaPaises["id"] ?>"><span><?php echo $filaPaises["idioma"] ?>- <label ><?php echo $filaPaises["lang"] ?></label></span></li>
                                <?php if($filaPaises["id"] == $_SESSION["sIDIOMA"]) { ?>
                                <script type="text/javascript">
                                    document.getElementById("iSel").innerHTML="<?php echo $filaPaises["idioma"] ?>";
                                    document.getElementById("tSel").innerHTML="<?php echo $filaPaises["lang"] ?>";  
                                </script>
                                <?php } endforeach; ?>
                            </ul>
                        </li>
                      </ul>
                    </form>
                </div>	
                <div ><a href="contacto.php" class="contacto"><span class="contacto-img">&nbsp;</span></a> </div>   
            </div><div class="top-search-continue"></div>
        </header>